/*
 *
 * Copyright (c) 2023 - future
 * @author fzh
 * @email e_341877120_mail@163.com
 * @link https://mvnrepository.com/search?q=io.github.xrfzh.cn
 *
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package cn.xrfzh.biz.videoTags.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;
import cn.xrfzh.common.axios.AxiosResult;
import cn.xrfzh.api.videoTags.pojo.VideoTags;
import cn.xrfzh.api.videoTags.dto.VideoTagsDto;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 用于存储视频的标签信息，以支持搜索和过滤功能
 *
 * @author fzh
 * @email e_341877120_mail@163.com
 * @date 2023-10-24 08:36:12
 */
public interface IVideoTagsService extends IService<VideoTags> {

    /**
     * 根据条件查询列表
     *
     * @param videoTagsDto
     * @return
     */
    AxiosResult selectList(VideoTagsDto videoTagsDto);

    /**
     * 根据条件分页查询
     *
     * @param currentPage
     * @param pageSize
     * @param videoTagsDto
     * @return
     */
    AxiosResult selectPage(int currentPage, int pageSize, VideoTagsDto videoTagsDto);

    /**
    * 根据id查询单个
    *
    * @param id
    * @return
    */
    AxiosResult selectOneById(Long id);

    /**
     * 新增
     *
     * @param videoTagsDto
     * @return
     */
    AxiosResult insert(VideoTagsDto videoTagsDto);

    /**
     * 更新
     *
     * @param videoTagsDto
     * @return
     */
    AxiosResult update(VideoTagsDto videoTagsDto);

    /**
    * 根据id删除单个
    *
    * @param id
    * @return
    */
    AxiosResult delete(Long id);

    /**
    * 根据id集合批量删除
    *
    * @param idList
    * @return
    */
    AxiosResult deleteBatch(List<Long> idList);

    /**
    * 导入文件
    *
    * @param file
    * @return
    */
    AxiosResult importFile(MultipartFile file);

    /**
    * 导出文件
    *
    * @param response
    */
    void exportFile(HttpServletResponse response);

}

